﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExtensionForStringBuilder
{
    public static class Extensions
    {

        public static StringBuilder Substring(this StringBuilder str, int index, int lenght) 
        {
            string current = str.ToString();
            current = current.Substring(index,lenght);
            StringBuilder result = new StringBuilder(current);
            return result;
        }
    }
}
